/*
 *英才会硕信息科技有限公司拥有本软件的版权，拥有本软件版权2025   并保留所有权利。
 *Copyright 2021,YCHS Information&Science Technology Co.,Ltd,
 *All rights reserved.
 */
package com.ychs.lawyerback01.exception;

import com.ychs.lawyerback01.common.ResultCode;
import lombok.Getter;

/**
 * 自定义类异常
 * @author xuehongjin
 * @version 1.0
 * @date 2025/8/13
 */
@Getter
public class BussinessException extends RuntimeException{
    private Integer code;
    private String message;

    public BussinessException(ResultCode resultCode) {
            super(resultCode.getMsg());
            this.code=resultCode.getCode();
    }
    public BussinessException(ResultCode resultCode, String message) {
        this.code = resultCode.getCode();
        this.message = message;
    }
}
